constant={
	weekdays:{monday:'星期一',tuesday:'星期二',wednesday:'星期三',thuesday:'星期四',friday:'星期五',santurday:'星期六',sunday:'星期天'},
	dayPeriod:{morning:'上午', afternoon:'下午', evening:'晚上'},
	ocupation:{0:'学生',1:'教师'},//职业类型
	education:{0:'小学',1:'初中',2:'高中',3:'中专',4:'大专',5:'大学本科',6:'研究生',7:'博士',8:'博士后'}//教育程度
};
courses={
	1:'小学语文',
	2:'小学数学',
	3:'小学英语',
	4:'中学语文',
	5:'中学数学',
	6:'中学英语',
	7:'中学生物',
	8:'中学化学'
};
function tutorInfo(json){
	this.id=json.id;
	this.poster=json.poster;
	this.postDate=json.postDate;
	this.status=json.status;
	
	this.subject=json.subject;
	this.title=json.title;
	this.teachDay=json.teachDay;
	this.feeType=json.feeType;
	this.chargeType=json.chargeType;
	this.chargeValue=json.chargeValue;
	this.courseType=json.courseType;
	
	this.courseNum=json.courseNum;
	this.teachWay=json.teachWay;
	this.memo=json.memo;
}
tutorInfo.statusDic={0:'报名中',1:'报名结束'};
tutorInfo.teachDayDic={1:constant.weekdays.monday + ' ' + constant.dayPeriod.morning,
		2:constant.weekdays.monday + ' ' + constant.dayPeriod.afternoon,
		3:constant.weekdays.monday + ' ' + constant.dayPeriod.evening,
		4:constant.weekdays.tuesday + ' ' + constant.dayPeriod.morning,
		5:constant.weekdays.tuesday + ' ' + constant.dayPeriod.afternoon,
		6:constant.weekdays.tuesday + ' ' + constant.dayPeriod.evening,
		7:constant.weekdays.wednesday + ' ' + constant.dayPeriod.morning,
		8:constant.weekdays.wednesday + ' ' + constant.dayPeriod.afternoon,
		9:constant.weekdays.wednesday + ' ' + constant.dayPeriod.evening,
		10:constant.weekdays.thuesday + ' ' + constant.dayPeriod.morning,
		11:constant.weekdays.thuesday + ' ' + constant.dayPeriod.afternoon,
		12:constant.weekdays.thuesday + ' ' + constant.dayPeriod.evening,
		13:constant.weekdays.friday + ' ' + constant.dayPeriod.morning,
		14:constant.weekdays.friday + ' ' + constant.dayPeriod.afternoon,
		15:constant.weekdays.friday + ' ' + constant.dayPeriod.evening,
		16:constant.weekdays.santurday + ' ' + constant.dayPeriod.morning,
		17:constant.weekdays.santurday + ' ' + constant.dayPeriod.afternoon,
		18:constant.weekdays.santurday + ' ' + constant.dayPeriod.evening,
		19:constant.weekdays.sunday + ' ' + constant.dayPeriod.morning,
		20:constant.weekdays.sunday + ' ' + constant.dayPeriod.afternoon,
		21:constant.weekdays.sunday + ' ' + constant.dayPeriod.evening
};
tutorInfo.chargeTypeDic={0:'按小时', 1:'按次数',2: '按课程'};
tutorInfo.courseTypeDic={0:'一对一', 1:'一对多'};
tutorInfo.teachWayDic={0:'教师上门',1:'学生上门'};
tutorInfo.feeTypeDic={0:'免费',1:'付费'};

tutorInfo.prototype=(function(){
	return {
		getChargeType:function(k){
			return tutorInfo.chargeTypeDic.k || '未知';
		},
		getCourseType:function(k){
			return tutorInfo.courseTypeDic.k || '未知';
		},
		getTeachWay:function(k){
			return tutorInfo.teachWayDic.k || '未知';
		},
		getFeeType:function(k){
			return tutorInfo.feeTypeDic.k || '未知';
		}
	};
})();
//
//var t = new tutorInfo(json);
//t.getChargeType(t.chargeType);